import Vue from 'vue'
import Router from 'vue-router'
import Box from '@/components/box'
import Hy from '@/components/hy'
import Gw from '@/components/gw'
import Ss from '@/components/ss'
import Xinwei  from '@/components/index/xinwei.vue'
import Lianxi  from '@/components/lianxi/lianxi.vue'
import Liuyan  from '@/components/liuyan/liuyan.vue'
import Shengpin  from '@/components/shengpin/shengpin.vue'
import Shipin  from '@/components/shipin/shipin.vue'
import Tupian  from '@/components/tupian/tupian.vue'
import Newsitems  from '@/components/iditem/newsitems.vue'
import Photoinfo  from '@/components/photoinit/photoinit.vue'
import GoodsInfo from '@/components/shengpin/goodsinfo.vue'
import Goodscomment from '@/components/iditem/goodscomment.vue'
import Goodsdesc  from '@/components/iditem/goodsdesc.vue'
Vue.use(Router)
console.log('ok')
export default new Router({
  routes: [
    { 
      path: '/box',
      component: Box
    }, 
    { 
      path: '/hy',
      component: Hy
    },
    { 
      path: '/gw',
      component: Gw
    },
    { 
      path: '/ss',
      component: Ss
    },
    { 
      path: '/box/xinwei',
      component: Xinwei
    },
    { 
      path: '/box/lianxi',
      component: Lianxi
    },
    { 
      path: '/box/liuyan',
      component: Liuyan
    },
    { 
      path: '/box/shengpin',
      component: Shengpin
    },
    { 
      path: '/box/shipin',
      component: Shipin
    },
    { 
      path: '/box/tupian',
      component: Tupian
    },
    { 
      path: '/box/newsitems',
      component: Xinwei 
    },
    { 
      path: '/tupian/photoinit/:id',
      component: Photoinfo
    },
    { 
      path: '/box/newsitems/:id',
      component: Newsitems
    },
    { 
      path: '/shengpin/goodsinfo/:id',
      component: GoodsInfo,
       name:"goodsinfo"
    },
    { 
      path: '/shengpin/goodsinfo/goodscomment/:id',
      component: Goodscomment,
       name:"/box/goodscomment"
    },
    { 
      path: '/shengpin/goodsinfo/goodsdesc/:id',
      component: Goodsdesc,
       name:"/box/goodsdesc"
    },
    { 
      path: '/',
     redirect: '/box'
    }
  ],
  linkActiveClass:'mui-active'
})
